<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>杀戮尖塔 - 卡牌策略冒险游戏</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        :root {
            --primary: #8a0303;
            --secondary: #2a0a0a;
            --accent: #d4af37;
            --light: #f5e9d4;
            --dark: #1a1a1a;
        }
        
        body {
            background: linear-gradient(135deg, #1a0a0a 0%, #2a0a0a 100%);
            color: var(--light);
            line-height: 1.6;
            overflow-x: hidden;
        }
        
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* 头部导航样式 */
        header {
            background: rgba(20, 5, 5, 0.9);
            padding: 15px 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
        }
        
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .logo {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .logo img {
            height: 60px;
            border-radius: 50%;
            border: 2px solid var(--accent);
        }
        
        .logo-text {
            font-size: 28px;
            font-weight: 800;
            background: linear-gradient(to right, #d4af37, #ffd700);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
        }
        
        nav ul {
            display: flex;
            list-style: none;
            gap: 30px;
        }
        
        nav a {
            color: var(--light);
            text-decoration: none;
            font-weight: 600;
            font-size: 18px;
            padding: 8px 15px;
            border-radius: 5px;
            transition: all 0.3s ease;
            position: relative;
        }
        
        nav a:hover, nav a.active {
            color: var(--accent);
            background: rgba(138, 3, 3, 0.2);
        }
        
        nav a::after {
            content: '';
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent);
            transition: width 0.3s ease;
        }
        
        nav a:hover::after {
            width: 100%;
        }
        
        /* Banner区域样式 */
        .banner {
            height: 500px;
            background: linear-gradient(rgba(20, 5, 5, 0.7), rgba(20, 5, 5, 0.7)), 
                        url('https://images.unsplash.com/photo-1511512578047-dfb367046420?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1500&q=80') center/cover;
            display: flex;
            align-items: center;
            position: relative;
            margin-bottom: 50px;
        }
        
        .banner-content {
            text-align: center;
            max-width: 800px;
            margin: 0 auto;
            padding: 20px;
        }
        
        .banner h1 {
            font-size: 4rem;
            margin-bottom: 20px;
            text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
            background: linear-gradient(to bottom, #ffd700, #d4af37);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .banner p {
            font-size: 1.5rem;
            margin-bottom: 30px;
            color: #f5e9d4;
        }
        
        .btn {
            display: inline-block;
            padding: 12px 30px;
            background: linear-gradient(45deg, var(--primary), #b30000);
            color: white;
            text-decoration: none;
            border-radius: 30px;
            font-weight: bold;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: all 0.3s ease;
            border: 2px solid var(--accent);
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
        }
        
        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5);
            background: linear-gradient(45deg, #b30000, var(--primary));
        }
        
        /* 角色区域样式 */
        .section-title {
            text-align: center;
            margin: 40px 0;
            position: relative;
        }
        
        .section-title h2 {
            font-size: 2.5rem;
            display: inline-block;
            background: linear-gradient(to right, var(--accent), #ffd700);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            padding: 0 20px;
        }
        
        .section-title::before, .section-title::after {
            content: '';
            position: absolute;
            top: 50%;
            width: 30%;
            height: 3px;
            background: linear-gradient(90deg, transparent, var(--accent), transparent);
        }
        
        .section-title::before {
            left: 0;
        }
        
        .section-title::after {
            right: 0;
        }
        
        .characters {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 30px;
            margin-bottom: 60px;
        }
        
        .character-card {
            background: rgba(30, 10, 10, 0.7);
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
            transition: transform 0.3s ease;
            border: 1px solid rgba(212, 175, 55, 0.3);
        }
        
        .character-card:hover {
            transform: translateY(-10px);
            border-color: var(--accent);
        }
        
        .character-img {
            height: 0;
            padding-top: 75%; /* 4:3 比例 */
            position: relative;
            overflow: hidden;
        }
        
        .character-img img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }
        
        .character-card:hover .character-img img {
            transform: scale(1.05);
        }
        
        .character-info {
            padding: 20px;
        }
        
        .character-info h3 {
            color: var(--accent);
            margin-bottom: 10px;
            font-size: 1.8rem;
        }
        
        .character-info p {
            color: #e0d0b8;
            margin-bottom: 15px;
        }
        
        .character-stats {
            display: flex;
            justify-content: space-between;
            background: rgba(42, 10, 10, 0.8);
            padding: 10px;
            border-radius: 8px;
            margin-top: 15px;
        }
        
        .stat {
            text-align: center;
        }
        
        .stat-value {
            font-size: 1.4rem;
            font-weight: bold;
            color: var(--accent);
        }
        
        .stat-name {
            font-size: 0.9rem;
            color: #c0a080;
        }
        
        /* 卡牌区域样式 */
        .cards-section {
            margin-bottom: 60px;
        }
        
        .cards-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 25px;
        }
        
        .card-item {
            background: rgba(30, 10, 10, 0.7);
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
            border: 1px solid rgba(212, 175, 55, 0.2);
        }
        
        .card-img {
            height: 0;
            padding-top: 75%; /* 4:3 比例 */
            position: relative;
        }
        
        .card-img img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .card-info {
            padding: 15px;
        }
        
        .card-info h3 {
            color: var(--accent);
            margin-bottom: 5px;
        }
        
        .card-type {
            display: inline-block;
            padding: 3px 10px;
            background: var(--primary);
            color: white;
            border-radius: 20px;
            font-size: 0.8rem;
            margin-bottom: 10px;
        }
        
        .card-desc {
            color: #e0d0b8;
            font-size: 0.95rem;
        }
        
        /* 表单区域样式 */
        .form-section {
            background: rgba(30, 10, 10, 0.7);
            border-radius: 15px;
            padding: 40px;
            margin-bottom: 60px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }
        
        .form-container {
            display: flex;
            gap: 40px;
            align-items: center;
        }
        
        .form-image {
            flex: 1;
            height: 0;
            padding-top: 75%; /* 4:3 比例 */
            position: relative;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
        }
        
        .form-image img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .form-content {
            flex: 1;
        }
        
        .form-content h3 {
            color: var(--accent);
            font-size: 1.8rem;
            margin-bottom: 20px;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: #e0d0b8;
        }
        
        .form-group input,
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 12px;
            border-radius: 8px;
            border: 1px solid rgba(212, 175, 55, 0.3);
            background: rgba(20, 5, 5, 0.8);
            color: var(--light);
            font-size: 1rem;
        }
        
        .form-group textarea {
            height: 120px;
            resize: vertical;
        }
        
        .form-group input:focus,
        .form-group textarea:focus,
        .form-group select:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
        }
        
        /* 页脚样式 */
        footer {
            background: rgba(10, 3, 3, 0.95);
            padding: 50px 0 20px;
            border-top: 2px solid rgba(212, 175, 55, 0.3);
        }
        
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }
        
        .footer-column h3 {
            color: var(--accent);
            margin-bottom: 20px;
            font-size: 1.4rem;
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 12px;
        }
        
        .footer-links a {
            color: #c0a080;
            text-decoration: none;
            transition: color 0.3s ease;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .footer-links a:hover {
            color: var(--accent);
        }
        
        .footer-links i {
            color: var(--accent);
        }
        
        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(212, 175, 55, 0.2);
            color: #c0a080;
            font-size: 0.9rem;
        }
        
        .student-info {
            background: rgba(42, 10, 10, 0.8);
            padding: 20px;
            border-radius: 10px;
            margin-top: 20px;
        }
        
        .student-info h4 {
            color: var(--accent);
            margin-bottom: 10px;
        }
        
        .student-info p {
            margin-bottom: 8px;
            color: #e0d0b8;
        }
        
        /* 轮播图样式 */
        .carousel {
            position: relative;
            height: 400px;
            overflow: hidden;
            border-radius: 15px;
            margin: 40px 0;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
        }
        
        .carousel-slides {
            display: flex;
            height: 100%;
            transition: transform 0.5s ease;
        }
        
        .carousel-slide {
            min-width: 100%;
            position: relative;
        }
        
        .carousel-slide img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .slide-content {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            padding: 30px;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
            color: white;
        }
        
        .carousel-nav {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;
        }
        
        .nav-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: background 0.3s ease;
        }
        
        .nav-dot.active {
            background: var(--accent);
        }
        
        .carousel-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0, 0, 0, 0.5);
            color: white;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            font-size: 1.5rem;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .carousel-btn:hover {
            background: var(--primary);
        }
        
        .prev-btn {
            left: 20px;
        }
        
        .next-btn {
            right: 20px;
        }
        
        /* 响应式设计 */
        @media (max-width: 992px) {
            .banner h1 {
                font-size: 3rem;
            }
            
            .form-container {
                flex-direction: column;
            }
            
            .form-image {
                width: 100%;
            }
        }
        
        @media (max-width: 768px) {
            nav ul {
                gap: 15px;
            }
            
            .banner {
                height: 400px;
            }
            
            .banner h1 {
                font-size: 2.5rem;
            }
            
            .banner p {
                font-size: 1.2rem;
            }
            
            .section-title h2 {
                font-size: 2rem;
            }
        }
        
        @media (max-width: 576px) {
            .header-container {
                flex-direction: column;
                gap: 15px;
            }
            
            nav ul {
                flex-wrap: wrap;
                justify-content: center;
            }
            
            .banner {
                height: 350px;
            }
            
            .banner h1 {
                font-size: 2rem;
            }
            
            .carousel {
                height: 300px;
            }
        }
    </style>
</head>
<body>
    <!-- 头部导航 -->
    <header>
        <div class="container header-container">
            <div class="logo">
                <img src="https://cdn.akamai.steamstatic.com/steam/apps/646570/header.jpg" alt="杀戮尖塔 Logo">
                <div class="logo-text">杀戮尖塔</div>
            </div>
            <nav>
                <ul>
                    <li><a href="#" class="active">首页</a></li>
                    <li><a href="#">角色介绍</a></li>
                    <li><a href="#">卡牌系统</a></li>
                    <li><a href="#">遗物图鉴</a></li>
                    <li><a href="#">游戏攻略</a></li>
                    <li><a href="#">社区</a></li>
                </ul>
            </nav>
        </div>
    </header>

    <!-- Banner区域 -->
    <section class="banner">
        <div class="banner-content">
            <h1>杀戮尖塔</h1>
            <p>融合卡牌与Roguelike元素的策略冒险游戏，攀登神秘尖塔，挑战未知命运</p>
            <a href="#" class="btn">开始冒险</a>
        </div>
    </section>

    <div class="container">
        <!-- 轮播图区域 -->
        <div class="carousel">
            <div class="carousel-slides">
                <div class="carousel-slide">
                    <img src="1233.jpg" alt="游戏场景1">
                    <div class="slide-content">
                        <h3>探索神秘尖塔</h3>
                        <p>每层都有独特的敌人、事件和宝藏等待发现</p>
                    </div>
                </div>
                <div class="carousel-slide">
                    <img src="kazu.jpg" alt="游戏场景2">
                    <div class="slide-content">
                        <h3>组合强力卡组</h3>
                        <p>数百张卡牌供你收集，打造独一无二的战斗风格</p>
                    </div>
                </div>
                <div class="carousel-slide">
                    <img src="yiwu.jpg" alt="游戏场景3">
                    <div class="slide-content">
                        <h3>收集神秘遗物</h3>
                        <p>强大的遗物将彻底改变你的游戏策略</p>
                    </div>
                </div>
            </div>
            <button class="carousel-btn prev-btn"><i class="fas fa-chevron-left"></i></button>
            <button class="carousel-btn next-btn"><i class="fas fa-chevron-right"></i></button>
            <div class="carousel-nav">
                <div class="nav-dot active"></div>
                <div class="nav-dot"></div>
                <div class="nav-dot"></div>
            </div>
        </div>

        <!-- 角色区域 -->
        <div class="section-title">
            <h2>可选角色</h2>
        </div>
        
        <div class="characters">
            <div class="character-card">
                <div class="character-img">
                    <img src="zhanshi.webp" alt="铁卫士">
                </div>
                <div class="character-info">
                    <h3>铁卫士</h3>
                    <p>前王国护卫队成员，擅长防御和格挡，通过护甲和力量成长来击败敌人。</p>
                    <div class="character-stats">
                        <div class="stat">
                            <div class="stat-value">75</div>
                            <div class="stat-name">初始生命</div>
                        </div>
                        <div class="stat">
                            <div class="stat-value">99</div>
                            <div class="stat-name">初始金币</div>
                        </div>
                        <div class="stat">
                            <div class="stat-value">1</div>
                            <div class="stat-name">初始遗物</div>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="character-card">
                <div class="character-img">
                    <img src="lieshou.webp" alt="静默猎手">
                </div>
                <div class="character-info">
                    <h3>静默猎手</h3>
                    <p>敏捷的刺客，擅长使用毒药和小刀，通过快速攻击和技能连击消灭敌人。</p>
                    <div class="character-stats">
                        <div class="stat">
                            <div class="stat-value">70</div>
                            <div class="stat-name">初始生命</div>
                        </div>
                        <div class="stat">
                            <div class="stat-value">99</div>
                            <div class="stat-name">初始金币</div>
                        </div>
                        <div class="stat">
                            <div class="stat-value">1</div>
                            <div class="stat-name">初始遗物</div>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="character-card">
                <div class="character-img">
                    <img src="jibao.webp" alt="故障机器人">
                </div>
                <div class="character-info">
                    <h3>故障机器人</h3>
                    <p>来自未来的战斗机器人，专注于充能球和能量循环，拥有独特的防御机制。</p>
                    <div class="character-stats">
                        <div class="stat">
                            <div class="stat-value">70</div>
                            <div class="stat-name">初始生命</div>
                        </div>
                        <div class="stat">
                            <div class="stat-value">99</div>
                            <div class="stat-name">初始金币</div>
                        </div>
                        <div class="stat">
                            <div class="stat-value">1</div>
                            <div class="stat-name">初始遗物</div>
                        </div>
                    </div>
                </div>
            </div>
            
            <div class="character-card">
                <div class="character-img">
                    <img src="guanzhe.webp" alt="观者">
                </div>
                <div class="character-info">
                    <h3>观者</h3>
                    <p>神秘的修行者，能在愤怒与平静姿态间切换，通过姿态转换获得强大力量。</p>
                    <div class="character-stats">
                        <div class="stat">
                            <div class="stat-value">72</div>
                            <div class="stat-name">初始生命</div>
                        </div>
                        <div class="stat">
                            <div class="stat-value">99</div>
                            <div class="stat-name">初始金币</div>
                        </div>
                        <div class="stat">
                            <div class="stat-value">1</div>
                            <div class="stat-name">初始遗物</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 卡牌区域 -->
        <div class="section-title">
            <h2>特色卡牌</h2>
        </div>
        
        <div class="cards-section">
            <div class="cards-container">
                <div class="card-item">
                    <div class="card-img">
                        <img src="zr.jpg" alt="重刃">
                    </div>
                    <div class="card-info">
                        <h3>重刃</h3>
                        <span class="card-type">攻击卡</span>
                        <p class="card-desc">造成14点伤害。</p>
                    </div>
                </div>
                
                <div class="card-item">
                    <div class="card-img">
                        <img src="dw.jpg" alt="毒雾">
                    </div>
                    <div class="card-info">
                        <h3>毒雾</h3>
                        <span class="card-type">技能卡</span>
                        <p class="card-desc">给予所有敌人4层中毒。如果敌人已中毒，再给予4层中毒。</p>
                    </div>
                </div>
                
                <div class="card-item">
                    <div class="card-img">
                        <img src="hx.jpg" alt="充能球">
                    </div>
                    <div class="card-info">
                        <h3>回响形态</h3>
                        <span class="card-type">能力卡</span>
                        <p class="card-desc">你在每回合打出的前 X 张牌将被打出两次。</p>
                    </div>
                </div>
                
                <div class="card-item">
                    <div class="card-img">
                        <img src="dus.jpg" alt="神格">
                    </div>
                    <div class="card-info">
                        <h3>渎神</h3>
                        <span class="card-type">能力卡</span>
                        <p class="card-desc">进入神格。在下回合死亡。</p>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 表单区域 -->
        <div class="section-title">
            <h2>加入尖塔冒险者协会</h2>
        </div>
        
        <div class="form-section">
            <div class="form-container">
                <div class="form-image">
                    <img src="1123.webp" alt="加入我们">
                </div>
                <div class="form-content">
                    <h3>获取最新游戏资讯</h3>
                    <form>
                        <div class="form-group">
                            <label for="name">姓名</label>
                            <input type="text" id="name" placeholder="请输入您的姓名">
                        </div>
                        <div class="form-group">
                            <label for="email">电子邮箱</label>
                            <input type="email" id="email" placeholder="请输入您的邮箱">
                        </div>
                        <div class="form-group">
                            <label for="character">首选角色</label>
                            <select id="character">
                                <option value="">请选择您最喜爱的角色</option>
                                <option value="ironclad">铁卫士</option>
                                <option value="silent">静默猎手</option>
                                <option value="defect">故障机器人</option>
                                <option value="watcher">观者</option>
                            </select>
                        </div>
                        <div class="form-group">
                            <label for="message">留言</label>
                            <textarea id="message" placeholder="请分享您的游戏心得或建议..."></textarea>
                        </div>
                        <button type="submit" class="btn">提交申请</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 页脚 -->
    <footer>
        <div class="container">
            <div class="footer-content">
                <div class="footer-column">
                    <h3>关于游戏</h3>
                    <ul class="footer-links">
                        <li><a href="#"><i class="fas fa-chevron-right"></i> 游戏特色</a></li>
                        <li><a href="#"><i class="fas fa-chevron-right"></i> 更新日志</a></li>
                        <li><a href="#"><i class="fas fa-chevron-right"></i> 开发团队</a></li>
                        <li><a href="#"><i class="fas fa-chevron-right"></i> 购买指南</a></li>
                    </ul>
                </div>
                
                <div class="footer-column">
                    <h3>游戏资源</h3>
                    <ul class="footer-links">
                        <li><a href="#"><i class="fas fa-chevron-right"></i> 卡牌图鉴</a></li>
                        <li><a href="#"><i class="fas fa-chevron-right"></i> 遗物大全</a></li>
                        <li><a href="#"><i class="fas fa-chevron-right"></i> 敌人图鉴</a></li>
                        <li><a href="#"><i class="fas fa-chevron-right"></i> 事件手册</a></li>
                    </ul>
                </div>
                
                <div class="footer-column">
                    <h3>社区交流</h3>
                    <ul class="footer-links">
                        <li><a href="#"><i class="fas fa-chevron-right"></i> 官方论坛</a></li>
                        <li><a href="#"><i class="fas fa-chevron-right"></i> Discord</a></li>
                        <li><a href="#"><i class="fas fa-chevron-right"></i> 玩家攻略</a></li>
                        <li><a href="#"><i class="fas fa-chevron-right"></i> MOD社区</a></li>
                    </ul>
                </div>
                
                <div class="footer-column">
                    <h3>联系方式</h3>
                    <ul class="footer-links">
                        <li><a href="#"><i class="fas fa-envelope"></i> contact@slaythespire.com</a></li>
                        <li><a href="#"><i class="fab fa-twitter"></i> @SlayTheSpire</a></li>
                        <li><a href="#"><i class="fab fa-facebook"></i> SlayTheSpireOfficial</a></li>
                        <li><a href="#"><i class="fab fa-youtube"></i> SlayTheSpire Channel</a></li>
                    </ul>
                </div>
            </div>
            
            <div class="student-info">
                <h4>学生信息</h4>
                <p><strong>学号：</strong>2410250067</p>
                <p><strong>姓名：</strong>汤宇</p>
                <p><strong>专业：</strong>软件工程</p>
                <p><strong>个人简介：</strong>热爱游戏开发与设计，擅长前端开发和UI设计，对卡牌策略类游戏有深入研究。</p>
            </div>
            
            <div class="copyright">
                <p>&copy; 2023 杀戮尖塔中文社区 | 本网站为课程设计作品，非商业用途</p>
            </div>
        </div>
    </footer>
    
    <script>
        // 轮播图功能
        document.addEventListener('DOMContentLoaded', function() {
            const slides = document.querySelector('.carousel-slides');
            const slidesCount = document.querySelectorAll('.carousel-slide').length;
            const dots = document.querySelectorAll('.nav-dot');
            const prevBtn = document.querySelector('.prev-btn');
            const nextBtn = document.querySelector('.next-btn');
            let currentIndex = 0;
            let interval;
            
            // 更新轮播图位置
            function updateSlide() {
                slides.style.transform = `translateX(-${currentIndex * 100}%)`;
                
                // 更新指示点状态
                dots.forEach((dot, index) => {
                    dot.classList.toggle('active', index === currentIndex);
                });
            }
            
            // 下一张幻灯片
            function nextSlide() {
                currentIndex = (currentIndex + 1) % slidesCount;
                updateSlide();
            }
            
            // 上一张幻灯片
            function prevSlide() {
                currentIndex = (currentIndex - 1 + slidesCount) % slidesCount;
                updateSlide();
            }
            
            // 自动播放
            function startAutoPlay() {
                interval = setInterval(nextSlide, 5000);
            }
            
            // 点击指示点切换
            dots.forEach((dot, index) => {
                dot.addEventListener('click', () => {
                    currentIndex = index;
                    updateSlide();
                    resetAutoPlay();
                });
            });
            
            // 重置自动播放
            function resetAutoPlay() {
                clearInterval(interval);
                startAutoPlay();
            }
            
            // 按钮事件监听
            prevBtn.addEventListener('click', () => {
                prevSlide();
                resetAutoPlay();
            });
            
            nextBtn.addEventListener('click', () => {
                nextSlide();
                resetAutoPlay();
            });
            
            // 开始自动播放
            startAutoPlay();
            
            // 表单提交
            const form = document.querySelector('form');
            form.addEventListener('submit', function(e) {
                e.preventDefault();
                alert('感谢提交！我们将尽快与您联系。');
                form.reset();
            });
        });
    </script>
</body>
</html>
